<?php
namespace app\user\controller;
use app\common\controller\UserBase;
use app\user\model\UserLog;

class Log extends UserBase
{
    //protected $noAuth = ['index','edit_user', 'update_userinfo','edit_password','logout'];
    
    protected function _initialize()
    {
        parent::_initialize();

    }
    //获取用户列表
    public function index()
    {
        //用户列表
        $list = UserLog::with(['user','shop'])->order('create_time desc,id desc')->paginate(20);
        $data = ['list' => $list];
        return $this->fetch('index',$data);
    }
    
    
}
